# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo6.08
# Description:
# Author:       $赵怡蕾
# Date:         2019/2/15
#-------------------------------------------------------------------------------

# 定义一个英文字典
dict = {"help":"帮助","bike":"自行车","geek":"极客","China":"中国"}
while True:
    # 输入一个英文单词
    word = input("请输入英文单词：")
    # 如果输入的是“:exit”，则退出循环
    if word == ":exit":
        break;
    # 从字典中查询英文单词
    value = dict.get(word)
    if value == None:
        print("{}在字典中不存在.".format(word))
    else:
        print("{}的含义是{}".format(word,value))  # 输出该英文单词对应的中文含义